home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3843 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.7 KB  |  46 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!marnold
  3. From: marnold@netcom.com (Matt Arnold)
  4. Subject: Re: BC++4.52 executale size
  5. Message-ID: <marnoldDLs8JJ.4DJ@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <4e9o17$pmv@serv.hinet.net>
  8. Date: Fri, 26 Jan 1996 09:47:42 GMT
  9. Sender: marnold@netcom20.netcom.com
  10.  
  11. young@hntp2.hinet.net (young) writes:
  12.  
  13.  
  14.  
  15.  
  16. >Two programs that do essentially the same thing,
  17. >with one made by BC++4.52 and the other made
  18. >by BC++3.1, have very different executable size.
  19. >
  20. >The one made by BC++4.52 has more than double the
  21. >size as the one made by BC++3.1. An About-dialog
  22. >class which includes <owl\dialog.h> and <owl\edit.h>
  23. >has a compiled object of 150,225 Bytes. It only
  24. >shows the version number and four copyright lines.
  25. >
  26. >Is this "normal" with BC++4.52, or, am I missing
  27. >something?
  28. >
  29.  
  30. Did you compile with "debug info" on or off?  Often times, with
  31. modern C++ compilers, the debug information (embedded in the 
  32. executable file) can be larger than the actual program.  Try
  33. again with debug info off (or use the TDSTRIP.EXE utility on your
  34. current .EXE).
  35.  
  36. You might also try fiddling with some of the optimization options.
  37.  
  38. Regards,
  39. -------------------------------------------------------------------------
  40. Matt Arnold                       |        | ||| | |||| |  | | || ||
  41. marnold@netcom.com                |        | ||| | |||| |  | | || ||
  42. Boston, MA                        |      0 | ||| | |||| |  | | || ||
  43. 617.389.7384 (h) 617.576.2760 (w) |        | ||| | |||| |  | | || ||
  44. C++, MIDI, Win32/95 developer     |        | ||| 4 3 1   0 8 3 || ||
  45. -------------------------------------------------------------------------
  46.